/*
 * RightWidget.h
 *
 *  Created on: 2009-02-12
 *      Author: ck
 */

#ifndef RIGHTWIDGET_H_
#define RIGHTWIDGET_H_
#include <QWidget>
#include <QListWidget>
#include <QVBoxLayout>
#include <QLabel>
#include <QDebug>

class RightWidget : public QWidget {
	Q_OBJECT
public:
	RightWidget(QWidget *parent = 0);
	virtual ~RightWidget();
	void updateLists(QStringList);
	void addSpectatorNick(QString nick);
	void addPlayerNick(QString nick);
	void removeSpectatorNick(QString nick);
	void removePlayerNick(QString nick);
	void clearNicks();
	void boldPlayerNick(QString nick, bool bold = true);
private:
	QListWidget * players;
	QListWidget * spectators;
	QList<QString> playersNicks;
	QList<QString> spectatorsNicks;
};

#endif /* RIGHTWIDGET_H_ */
